<?php exit; // Отключаем тестовую страницу ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
    #INSERT_HEAD
	<title>AlohaCart Payment Platilka Test Page</title>
</head>

<body>
<h3>Это то, что должна отправить Platilka</h3>
<form method="post" action="[(#URL_PAGE{alohacart_payment,code=platilka&url=info}|url_absolue)]">
    <table>        
        <tr>
            <td>transaction_id:</td>
            <td><input type="text" name="transaction_id" value="12321342" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>subseller_id:</td>
            <td><input type="text" name="subseller_id" value="12345" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>order_id:</td>
            <td><input type="text" name="order_id" value="12" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>amount:</td>
            <td><input type="text" name="amount" value="3885" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>is_test:</td>
            <td><input type="text" name="is_test" value="1" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>status:</td>
            <td><input type="text" name="status" value="4" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>message:</td>
            <td><input type="text" name="message" value="" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>signature:</td>
            <td><input type="text" name="signature" value="<?php echo sha1('12321342'.'12345'.'12'.'3885'.'1'.'4'.'12345'); ?>" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td>description:</td>
            <td><input type="text" name="description" value="Test payment" style="width: 300px;" /></td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" value="Отправить" />
            </td>
        </tr>
    </table>
</form>


<?php
    $payment = pdk_load_class('AlohacartPaymentPlatilka','classes/payment');    
    echo $payment->GetData(array('id_order'=>72));
?>

</body>
</html>